﻿@{
    Layout = "../Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"));
}

@section Sidebar
{
    <section class="box">
        <header>
            <h3>&equiv;</h3>
        </header>
        <section>
        @{
            Html.RenderPartial("_GoTo");
        }
        </section>
    </section>
}
<section class="box">
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery('@ID("#dlg_create")').dialog();
            jQuery('@ID("#btn_create")').click(function () {
                jQuery('@ID("#dlg_create")').dialog("open");
            });
        });
    </script>
    <header>
        <ul class="bar toolbar">
            <li><a id="@ID("btn_create")" class="button" href="#">@T(Res.In("Common").Of("Act").Name("Create"))</a></li>
        </ul>
        <h3>@ViewBag.PageTitle</h3>
    </header>
    <section>
        @{
            Html.RenderPartial("_Grid");
        }
        <div id="@ID("dlg_create")">
            <form action="@Url.Action(Loc.Act("Create"))" method="get">
                <table>
                    <tr>
                        <td>
                            <select name="code">
                                <option value="DIMENSION">@T(Res.Name("DIMENSION"))</option>
                            </select>
                        </td>
                    </tr>
                </table>
                <ul class="bar toolbar">
                    <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
                </ul>
            </form>
        </div>
    </section>
</section>
